package cloudPayAdmin.admin.service.hicatcard.distributor;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cloudPayAdmin.admin.dbapp.entity.hicatcard.distributor.TDistributorPerson;
import cloudPayAdmin.admin.dbapp.repo.hicatcard.distributor.DistributorPersonRepo;

@Service
@Transactional
public class DistributorPersonService {

    @Autowired
    DistributorPersonRepo distributorPersonRepo;

    public void saveDistributorPerson(TDistributorPerson distributorPerson){
        distributorPersonRepo.save(distributorPerson);
    }
    
    public Long countByDistributorAndCreateTime(Long distributorId,String minCreateTime,String maxCreateTime) {
    	return distributorPersonRepo.countByDistributorAndCreateTime(distributorId, minCreateTime, maxCreateTime);
    };
}
